package com.xxx.video.dynamic.presenters;

import android.content.Context;

import androidx.annotation.NonNull;

import com.xxx.video.commen.dbs.beans.SearchFriendHistoryBean;
import com.xxx.video.commen.dbs.utils.DbUtils;
import com.xxx.video.commen.presenters.BasePresenter;

import java.util.List;

public class FindFriendRecommendPresenter extends BasePresenter<IFindFriendRecommendView> {

    public FindFriendRecommendPresenter(@NonNull Context context, IFindFriendRecommendView baseView) {
        super(context, baseView);
    }



    /**
     * get search history list
     */
    public void getSearchHistoryList() {
        List<SearchFriendHistoryBean> searchFriendHistoryBeanList = DbUtils.getInstance().getFriendSearchHistoryList();
        if (getBaseView() != null) {
            getBaseView().initSearchHistoryListData2View(searchFriendHistoryBeanList);
        }
    }
}
